home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 November
/
Macworld (1999-11).dmg
/
Updaters
/
WhiteCap 3.0.4
/
WhiteCap Source.sit
/
WhiteCap Source
/
Common
/
General Tools
/
Headers
/
RectUtils.h
< prev
next >
Wrap
Text File
|
1999-07-28
|
697b
|
27 lines
#ifndef __RectUtils__
#define __RectUtils__
#if EG_WIN
#ifndef Rect_Defined
struct Rect {
short left, top, right, bottom;
};
#define Rect_Defined
#endif
extern short PtInRect( const Point& inPt, const Rect* inRect );
extern void SetRect( Rect* inR, long left, long top, long right, long bot );
extern void InsetRect( Rect* inR, int inDelX, int inDelY );
extern void UnionRect( const Rect* inR1, const Rect* inR2, Rect* outRect );
extern void OffsetRect( Rect* inRect, int inDelX, int inDelY );
extern void SectRect( const Rect* inR1, const Rect* inR2, Rect* outRect );
#endif
#if EG_MAC
#include <QuickDraw.h>
#endif
extern void UnionPt( long x, long y, Rect* ioRect );
#endif